package cn.edu.ujn.booksshop.service;

import org.springframework.stereotype.Service;

import cn.edu.ujn.booksshop.dao.User;
import cn.edu.ujn.util.Page;

@Service
public interface IUserService {
	// 通过id和密码查询用户
	public User findUser(User user);
	// 通过id查找用户
	User selectByPrimaryKey(Integer id);
	//userMangment.jsp查找所有user
	Page<User> selectAll(Integer page,Integer rows);
    Integer selectCount();
	//userMangment.jsp中创建user
	int insertSelective(User user);
	
	//userMangement.jsp中删除user
	int deleteByPrimaryKey(Integer userid);
	
	//更新
	int updateByPrimaryKeySelective(User row);
	
}
